/*
 * 文件名称: App.java Copyright 2011-2016 Ximalaya All right reserved.
 */
package com.zxy.shardisdemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ximalaya.shardis.ShardisTemplate;

/**
 * @author Bird Zhang
 */
public class App {

  public static void main(String[] args) {
    System.out.println("zxy");
    ApplicationContext ctx = new ClassPathXmlApplicationContext("application-context.xml");// 读取bean.xml中的内容
    ShardisTemplate<String, String, String> userService = ctx.getBean("userService", ShardisTemplate.class);// 创建bean的引用对象
  }

}
